package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author fanYuLe
 * @Date 2023/3/1 11:09
 * @Blog blog.fanYuLe.net/996.mba
 * @Description:
 */
@EnableCaching//开启基于缓存的注解
@SpringBootApplication // 启动类
@MapperScan("com.itheima.reggie.mapper")// 扫描mybatis接口创建代理对象
@EnableTransactionManagement //开启事务注解支持
@Slf4j
public class WebManageApplication {
    public static void main(String[] args) {
        //写错了SpringBootApplication.run(WebManageApplication.class,args);
        SpringApplication.run(WebManageApplication.class, args);
        log.info("项目启动成功");
        System.out.println("叶有财的输出语句");
        System.out.println("彭于叶的输出语句");
        System.out.println("小白兔准备跑路");
        System.out.println("别卷了");
        System.out.println("樊玉乐的分支");
    }
}

